<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
<?php use \yii\helpers\Html;?>
<!-- 树形菜单选择 -->
<link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css">
<script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script>
<script src="/laydate/laydate.js"></script>
<div class="span10" id="datacontent">
    <ul class="breadcrumb">
        <li><a href="/content/ads-banner/index">重点推荐</a> <span class="divider">/</span></li>
    </ul>
    <a class="addBtn"  href="/content/recommend/add">添加</a>


    <form action="/content/api/sort" method="post">
        <table class="table table-hover add_defined">
            <thead>
            <tr>
                <th width="80">排序</th>
                <th width="80">ID</th>
                <th>标题</th>
                <th>链接</th>
                <th>网站</th>
                <th>时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($content as $v):?>
                <tr>
                    <td>
                        <div>
                            <input style="width: 25px;text-align: center;margin-bottom: 0;" name="sort[]" type="text" value="<?php echo $v['sort'] ?>">
                            <input name="id[]" type="hidden" value="<?php echo $v['id'] ?>">
                        </div>
                    </td>
                    <td><?php echo $v['id'];?></td>
                    <td><?php echo $v['name'];?></td>
                    <td><?php echo $v['url'] ?></td>
                    <td><?php echo $v['type'] == 1 ? 'WAP' : 'PC';?></td>
                    <td><?php echo date('Y-m-d H:i:s', $v['createTime']);?></td>
                    <td class="notSLH" style="width: 247px;">
                        <div>
                            <a class="link-update"
                               href="<?php echo baseUrl . '/content/recommend/add' . '?' . 'id=' . $v['id'] ?>">修改</a>
                        </div>
                    </td>
                </tr>
            <?php endforeach;?>
            </tbody>
        </table>
        <input type="hidden" name="cate" value="6">
        <button class="push btn btn-primary" type="submit" style="margin-top: 15px;">排序</button>
        <input type="hidden" name="url" value="">
    </form>
    <div class="pagination pagination-right">
        <input type="hidden" id="jumpUrl" value="<?php echo Yii::$app->request->getUrl();?>" />
        <?php use yii\widgets\LinkPager;?>
        <?php echo LinkPager::widget([
            'pagination' => $page,
        ])?>
    </div>
    <script>
    </script>

